﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BlankApp.DataSources
{
    class VgaDataSource
    {
        public static ObservableCollection<VgaGroup> GetVgaGroups()
        {
            ObservableCollection<VgaGroup> vgaGroupsCollection = new ObservableCollection<VgaGroup>();

            // Group 1 
            VgaGroup vgaGroup = new VgaGroup("Allgemein");

            Vga vga = new Vga("9001", "Kassenanfang", "Eroeffnet eine Kassensitzung");
            vgaGroup.Vgas.Add(vga);

            vga = new Vga("9002", "Kassenende", "Schliesst eine Kassensitzung");
            vgaGroup.Vgas.Add(vga);

            for (int i = 0; i < 10; ++i)
            {
                vga = new Vga("Vga" + i.ToString(), "Vga long name" + i.ToString(), "description" + i.ToString());
                vgaGroup.Vgas.Add(vga);
            }

            vgaGroupsCollection.Add(vgaGroup);

            // Group 2
            vgaGroup = new VgaGroup("DHL Packet");

            vga = new Vga("1400", "Packet Annahme", "Packet Annahme beschreibung");
            vgaGroup.Vgas.Add(vga);

            vga = new Vga("1450", "Packet Abholen", "Packet Abholen beschreibung");
            vgaGroup.Vgas.Add(vga);

            for (int i = 0; i < 5; ++i)
            {
                vga = new Vga("Vga" + i.ToString(), "Vga long name" + i.ToString(), "description" + i.ToString());
                vgaGroup.Vgas.Add(vga);
            }
            
            vgaGroupsCollection.Add(vgaGroup);


            // Group 3
            vgaGroup = new VgaGroup("Post Bank");

            for (int i = 0; i < 15; ++i)
            {
                vga = new Vga("Vga" + i.ToString(), "Vga long name" + i.ToString(), "description" + i.ToString());
                vgaGroup.Vgas.Add(vga);
            }

            vgaGroupsCollection.Add(vgaGroup);


            // Group 4
            vgaGroup = new VgaGroup("Group 4");

            for (int i = 0; i < 12; ++i)
            {
                vga = new Vga("Vga" + i.ToString(), "Vga long name" + i.ToString(), "description" + i.ToString());
                vgaGroup.Vgas.Add(vga);
            }

            vgaGroupsCollection.Add(vgaGroup);

            // Group 5
            vgaGroup = new VgaGroup("Group 5");

            for (int i = 0; i < 7; ++i)
            {
                vga = new Vga("Vga" + i.ToString(), "Vga long name" + i.ToString(), "description" + i.ToString());
                vgaGroup.Vgas.Add(vga);
            }

            vgaGroupsCollection.Add(vgaGroup);

            // Group 6
            vgaGroup = new VgaGroup("Group 6");

            for (int i = 0; i < 27; ++i)
            {
                vga = new Vga("Vga" + i.ToString(), "Vga long name" + i.ToString(), "description" + i.ToString());
                vgaGroup.Vgas.Add(vga);
            }

            vgaGroupsCollection.Add(vgaGroup);
            
            return vgaGroupsCollection;
        }
    }
}
